<?php
namespace app\validate;

use think\Validate;

class BasicCheck extends Validate
{
    protected $rule = [
        'token' => 'require',
        'user_id' => 'require',
        'version' => 'require',
        'lang' => 'require',

        'page'=>'require',
        'limit'=>'require',



    ];

    protected $message = [
        'token.require' => 'token不能为空',
        'user_id.require' => '用户id不能为空',
        'version.require' => '版本号不能为空',
        'lang.require' => '语言类型不能为空',

        'page.require' => '页码不能为空',
        'limit.require' => '分页条数不能为空',



    ];

    protected $scene = [
        'lists' => ['token', 'user_id', 'version', 'lang', 'page', 'limit'],
    ];
}